<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>cubic-bezier过度效果</title>
    <style>
      .box {
        margin: 0 auto;
        width: 100px;
        height: 100px;
        text-align: center;
        vertical-align: center;
      }
      .box:hover {
        margin: auto;
        width: 100px;
        height: 100px;
        background-color: #41ffaa;
        animation: fcl 200ms cubic-bezier(1, 0.8, 0, 0.2) 160ms;
      }
      @keyframes fcl {
        0% {
          transform: none;
        }
        50% {
          transform: scaleY(2.5);
        }
        100% {
          transform: none;
        }
      }
    </style>
  </head>
  <body>
    <div class="box">贝塞尔曲线</div>
    <p></p>
  </body>
</html>
